Skip to content

fix(fleet-queue): filter claims by implementation repository - #11913

Merged
dezren39 merged 2 commits into
mainfrom
aster/claim-implementation-repo-20261118
Nov 18, 2026
Merged

dezren39 merged 2 commits into
mainfrom
aster/claim-implementation-repo-20261118

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

What

Explicit optional payload.implementation_repo selects the repository receiving the work, while payload.repo remains the tracking issue/dedupe identity. Both SQL claim scope (selection and atomic update) and pure filters honor the override. Marked cross-repo-change packets without a target are rejected by canonical validation, so legacy malformed packets quarantine with a repair diagnostic instead of cycling through code-only lanes.

Refs #10415 (task20592: code-hosted issue, Kaneo implementation). This does not implement or close that issue.

Work-window contract

Reuse existing #3418 required_budget_minutes / --remaining-budget-minutes, not a new timeout or guessed effort mapping. Runbook documents recomputing usable remaining minutes per claim and preserving independent ownership holds. FDR-0011 records the decision.

Verification

  • Expected red: both new target/validation tests failed on baseline.
  • Final head28b498b01bfa25e81ebb25b94c53e35317f045a8: cargo test -p fleet-queue --features queue-broker --lib:424passed,0failed, via fleet-build-lock.
  • Includes isolated SQLite target/window matrix (negative filters, exact/short/missing budgets, parked requirement precedence), invoked by Rust suite.
  • git diff --check clean; schema JSON parses. External jsonschema validator unavailable.
  • Independent review completed; canonical validation mismatch corrected and suite rerun after merging current main.

Not live yet

No broker deployment/restart, schedule edits, or stored packet repair. Current broker has no supported payload-update verb; enqueue dedupe is not a repair. Task20592 still requires explicit target repair. Tasks20725/#7587 and20567/#10345 remain owner-handoff gated; no inferred duration or release. Do not call this production rollout complete.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 10cef64c-28c9-4730-b354-7c22c290dd56
Commits

Reviewing files that changed from the base of the PR and between 19a950e and 28b498b.

Files selected for processing: 8

  • doc/agents/one-queue-claiming-work.md
  • doc/decisions/FDR-0011-implementation-target-and-work-window.md
  • doc/decisions/README.md
  • pkgs/fleet/crates/fleet-queue/src/turso_queue.rs
  • pkgs/fleet/crates/fleet-queue/src/turso_queue/claim.rs
  • pkgs/fleet/crates/fleet-queue/src/validate.rs
  • pkgs/fleet/crates/fleet-queue/tests/implementation_repo_sql.py
  • pkgs/fleet/repo-task-v1.schema.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 21:03
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 21:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T21:04:38.533950Z 28b498b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 6f5d05e into main Nov 18, 2026
1 check passed
@dezren39
dezren39 deleted the aster/claim-implementation-repo-20261118 branch November 18, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant